﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Zzva.Common;

namespace Zzva.DomainObject
{
    public class TDirITCompany: TDirITCompanyBase 
    {

        private TEsbDomainObject mvarEsbDomainObject;
        private int mvarId;



        public override string Obozn
        {
            get { return mvarObozn; }




            //!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
            //На время первоначального заполнения справочника
            ////set { if (mvarObozn != value) { throw (new CommonException("Обозначение в постояяном объекте нельзя изменять")); } }
            set { mvarObozn = value; }
        
        
        }














        public TDirITCompany(TEsbDomainObject pEsbDomainObject,
                         int pId, string pObozn, string pNaim): base()
       
        {
            mvarObozn = pObozn;
            mvarNaim = pNaim;
            mvarEsbDomainObject = pEsbDomainObject;
            mvarId = pId;

        }



        public override  int Id
        {
            get { return mvarId; }
        }














        private  TEsbDomainObject Esb
        {
            get
            {
                try
                {
                    return mvarEsbDomainObject;
                }
                catch (Exception e) { throw e; }
                finally { }
            }
        }




        public override string Naim
        {
            get { return mvarNaim; }
            set { mvarNaim = value; }
        }





    }
}
